﻿Module UI

    Public Sub FormatDataGrid(ByRef dgv As DataGridView)
        dgv.AllowUserToAddRows = False
        dgv.AllowUserToDeleteRows = False
        dgv.ReadOnly = True
        dgv.RowHeadersVisible = False
        dgv.AllowUserToResizeRows = False
        dgv.AlternatingRowsDefaultCellStyle.BackColor = Color.LightGray
        dgv.CellBorderStyle = DataGridViewCellBorderStyle.None
        dgv.RowTemplate.Height = 27
        dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect
        dgv.MultiSelect = False
    End Sub

End Module
